<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered xsui-table-tree">
    <thead>
        <tr>
            <th>栏目名称</th>
            <th>栏目类型</th>
            <th>栏目代码</th>
            <th>排序</th>
            <th>前台显示</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="tree" item="vo">
        <tr data-key="{$vo.id}" class="xsui-table-tree-l1">
            <td class="title">
                <i class="prefix"></i>
                <a href="{:U('channel_edit','id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑 {$vo.title}">{$vo.title}</a>
                <switch name="vo['type_name']">
        <case value="page"><a href="{:U('content_edit','id='.$vo['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑内容--{$vo.title}"><i class="fa fa-file-text-o"></i></a></case>
        <case value="document-list"><a href="{:U('Documents/document_edit','category_id='.$vo['id'])}" class="xsui-a" data-id="{$vo.id}" title="新增文章--{$vo.title}">添加文章</a><a href="{:U('Documents/document_list','category_id='.$vo['id'])}" class="xsui-icon-only xsui-lnk-tab" data-id="{$vo.id}" title="管理文章--{$vo.title}"><i class="fa fa-folder-open-o"></i></a></case>
        <case value="url"><a href="{:U('link_edit','id='.$vo['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑链接--{$vo.title}"><i class="fa fa-link"></i></a></case>
        <case value="file-list"><a href="{:U('File/file_edit','category_id='.$vo['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo.id}" title="添加文件--{$vo.title}">添加文件</a><a href="{:U('File/file_list','category_id='.$vo['id'])}" class="xsui-icon-only xsui-lnk-tab" data-id="{$vo.id}" title="管理文件--{$vo.title}"><i class="fa fa-folder-open-o"></i></a></case>
        </switch>
        </td>
        <td>{:sofn_get_state_text('channel-type', $vo['type_name'])}</td>
        <td>{$vo.code}</td>
        <td class="sort"><input type="text" value="{$vo.sort}" size="3" data-value="{$vo.sort}" data-url="{:U('change_sort','id='.$vo['id'].'&sort=varsort')}" title="更改后,鼠标点击页面任意位置即可自动生效" /></td>
        <td class="status"><a href="{:U('change_status','id='.$vo['id'].'&status=varstatus')}" data-value="{$vo.status}" title="点击隐藏" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
        <td>{$vo.create_time}</td>
        <td>
            <ul class="xsui-operate-group">
                <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                    <ul>
                        <if condition="'Y' eq $vo['allow_subitem']"><li><a href="{:U('channel_edit','pid='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="添加子栏目--{$vo.title}"><i class="fa fa-plus fa-fw"></i>添加</a></li></if>                        
                        <li><a href="{:U('channel_edit','id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑 {$vo.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                        <li><a href="{:U('channel_delete','id='.$vo['id'])}" class="xsui-lnk-remove" data-id="{$vo.id}" title="删除 {$vo.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                        <li><a href="{:U('channel_copy','id='.$vo['id'])}" class="xsui-lnk-copy" data-dialog="{title:'复制'}"><i class="fa fa-copy fa-fw"></i>复制</a></li>
                    </ul>
                </li>
            </ul>
        </td>
        </tr>
        <foreach name="vo['children']" item="vo2">
            <tr data-key="{$vo2.id}" class="xsui-table-tree-l2">
                <td class="title"><i class="prefix"></i>
                    <a href="{:U('channel_edit','id='.$vo2['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo2.id}" title="编辑 {$vo2.title}">{$vo2.title}</a>
                    <switch name="vo2['type_name']">
            <case value="page"><a href="{:U('content_edit','id='.$vo2['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo2.id}" title="编辑内容--{$vo2.title}"><i class="fa fa-file-text-o"></i></a></case>
            <case value="document-list"><a href="{:U('Documents/document_edit','category_id='.$vo2['id'])}" class="xsui-a" data-id="{$vo2.id}" title="新增文章--{$vo2.title}">添加文章</a><a href="{:U('Documents/document_list','category_id='.$vo2['id'])}" class="xsui-icon-only xsui-lnk-tab" data-id="{$vo2.id}" title="管理文章--{$vo2.title}"><i class="fa fa-folder-open-o"></i></a></case>
            <case value="url"><a href="{:U('link_edit','id='.$vo2['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo2.id}" title="编辑链接--{$vo2.title}"><i class="fa fa-link"></i></a></case>
            <case value="file-list"><a href="{:U('File/file_edit','category_id='.$vo2['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo2.id}" title="添加文件--{$vo2.title}">添加文件</a><a href="{:U('File/file_list','category_id='.$vo2['id'])}" class="xsui-icon-only xsui-lnk-tab" data-id="{$vo2.id}" title="管理文件--{$vo2.title}"><i class="fa fa-folder-open-o"></i></a></case>
            </switch>
            </td>
            <td>{:sofn_get_state_text('channel-type', $vo2['type_name'])}</td>
            <td>{$vo2.code}</td>
            <td class="sort"><input type="text" value="{$vo2.sort}" size="3" data-value="{$vo2.sort}" data-url="{:U('change_sort','id='.$vo2['id'].'&sort=varsort')}" title="更改后,鼠标点击页面任意位置即可自动生效" /></td>      
            <td class="status"><a href="{:U('change_status','id='.$vo2['id'].'&status=varstatus')}" data-value="{$vo2.status}" title="点击隐藏" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
            <td>{$vo2.create_time}</td>
            <td>
                <ul class="xsui-operate-group">
                    <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                        <ul>
                            <if condition="'Y' eq $vo2['allow_subitem']"><li><a href="{:U('channel_edit','pid='.$vo2['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo2.id}" title="添加子栏目--{$vo2.title}"><i class="fa fa-plus fa-fw"></i>添加</a></li></if>
                            <li><a href="{:U('channel_edit','id='.$vo2['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo2.id}" title="编辑 {$vo2.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                            <li><a href="{:U('channel_delete','id='.$vo2['id'])}" class="xsui-lnk-remove" data-id="{$vo2.id}" title="删除 {$vo2.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                            <li><a href="{:U('channel_copy','id='.$vo2['id'])}" class="xsui-lnk-copy" data-dialog="{title:'复制'}"><i class="fa fa-copy fa-fw"></i>复制</a></li>
                        </ul>
                    </li>
                </ul>
            </td>
            </tr>
            <foreach name="vo2['children']" item="vo3">
                <tr data-key="{$vo3.id}" class="xsui-table-tree-l3">
                    <td class="title"><i class="prefix"></i>
                        <a href="{:U('channel_edit','id='.$vo3['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo3.id}" title="编辑 {$vo3.title}">{$vo3.title}</a>
                        <switch name="vo3['type_name']">
                <case value="page"><a href="{:U('content_edit','id='.$vo3['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo3.id}" title="编辑内容--{$vo3.title}"><i class="fa fa-file-text-o"></i></a></case>
                <case value="document-list"><a href="{:U('Documents/document_edit','category_id='.$vo3['id'])}" class="xsui-a" data-id="{$vo3.id}" title="新增文章--{$vo3.title}">添加文章</a><a href="{:U('Documents/document_list','category_id='.$vo3['id'])}" class="xsui-icon-only xsui-lnk-tab" data-id="{$vo3.id}" title="管理文章--{$vo3.title}"><i class="fa fa-folder-open-o"></i></a></case>
                <case value="url"><a href="{:U('link_edit','id='.$vo3['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo3.id}" title="编辑链接--{$vo3.title}"><i class="fa fa-link"></i></a></case>
                <case value="file-list"><a href="{:U('File/file_edit','category_id='.$vo3['id'])}" class="xsui-a xsui-lnk-edit-dialog" data-id="{$vo3.id}" title="添加文件--{$vo3.title}">添加文件</a><a href="{:U('File/file_list','category_id='.$vo3['id'])}" class="xsui-icon-only xsui-lnk-tab" data-id="{$vo3.id}" title="管理文件--{$vo3.title}"><i class="fa fa-folder-open-o"></i></a></case>
                </switch></td>
                <td>{:sofn_get_state_text('channel-type', $vo3['type_name'])}</td>
                <td>{$vo3.code}</td>
                <td class="sort"><input type="text" value="{$vo3.sort}" size="3" data-value="{$vo3.sort}" data-url="{:U('change_sort','id='.$vo3['id'].'&sort=varsort')}" title="更改后,鼠标点击页面任意位置即可自动生效" /></td>
                <td class="status"><a href="{:U('change_status','id='.$vo3['id'].'&status=varstatus')}" data-value="{$vo.status}" title="点击隐藏" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
                <td>{$vo3.create_time}</td>
                <td>
                    <ul class="xsui-operate-group">
                        <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                            <ul>
                                <li><a href="{:U('channel_edit','id='.$vo3['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo3.id}" title="编辑 {$vo3.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                                <li><a href="{:U('channel_delete','id='.$vo3['id'])}" class="xsui-lnk-remove" data-id="{$vo3.id}" title="删除 {$vo3.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                                <li><a href="{:U('channel_copy','id='.$vo3['id'])}" class="xsui-lnk-copy" data-dialog="{title:'复制'}"><i class="fa fa-copy fa-fw"></i>复制</a></li>
                            </ul>
                        </li>
                    </ul>
                </td>
                </tr>
            </foreach>
        </foreach>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>